package com.ljm.spring01;

import com.ljm.spring01.controller.BookController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ConditionContext;

@SpringBootApplication
public class User {
    public static void main(String[] args){
        ConfigurableApplicationContext ctx = SpringApplication.run(Spring01Application.class, args);
        BookController bean = ctx.getBean(BookController.class);
        System.out.println("bean=========>"+bean);
    }
}
